﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MC.RideEventMVC.Models.Entity
{
    //A voir si utile
    public class SingletonDbEntities
    {
        public static RideEventDBEntities Context { get; private set; };

        private SingletonDbEntities(){}

        public static RideEventDBEntities GetInstance()
        {
            if(Context == null)
            {
                Context = new RideEventDBEntities();
            }

            return Context;
        }
    }
}